﻿using Eqwww.Domain.Models.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Eqwww.Domain.Models.SystemManage
{
    public class AttachmentModel : ICreateAudited, ILastUpdateAudited, IDeleteAudited
    {
        public string Id { get; set; }
        [Display(Name = "创建人")]
        public string CreateUserId { get; set; }
        public virtual UserModel CreateUser { get; set; }
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }
        [Display(Name = "最后更新人")]
        public string LastUpdateUserId { get; set; }
        public virtual UserModel LastUpdateUser { get; set; }
        [Display(Name = "最后更新时间")]
        public DateTime? LastUpdateTime { get; set; }
        [Display(Name = "删除标识")]
        public bool? DeleteMark { get; set; }
        [Display(Name = "删除人")]
        public string DeleteUserId { get; set; }
        public virtual UserModel DeleteUser { get; set; }
        [Display(Name = "删除时间")]
        public DateTime? DeleteTime { get; set; }

        [Display(Name ="标题")]
        public string Title { get; set; }
        [Display(Name ="原始文件名")]
        public string SourceName { get; set; }
        [Display(Name ="保存文件名")]
        public string TargetName { get; set; }
        [Display(Name ="保存路径")]
        public string TargetPath { get; set; }
        [Display(Name ="文件大小")]
        public long? RealFileSize { get; set; }
        [Display(Name ="文件大小")]
        public string FileSize { get; set; }
        [Display(Name ="后缀名")]
        public string ExtName { get; set; }
        [Display(Name ="图片标识")]
        public bool IsPic { get; set; }
        [Display(Name ="缩略图路径")]
        public string ThumbPath { get; set; }
        [Display(Name ="图片宽度")]
        public int? Width { get; set; }
        [Display(Name ="图片高度")]
        public int? Height { get; set; }
        [Display(Name ="备注")]
        public string Description { get; set; }
    }
}
